package interface_test;

/**
 * @author yuisama
 * @date 2022/09/15 21:29
 **/
public class Duck implements IRun,ISwim,IFly{
    @Override
    public void fly() {
        System.out.println("鸭子飞起来了");
    }

    @Override
    public void run() {
        System.out.println("鸭子正在陆地上吃虫子");
    }

    @Override
    public void swim() {
        System.out.println("鸭子正在惬意的游泳");
    }
}